package org.example.memora.service;

import org.example.memora.common.result.PageResult;
import org.example.memora.common.result.Result;
import org.example.memora.entity.Community;
import org.example.memora.entity.CommunityUser;

import java.util.List;

public interface CommunityService {
    Result<?> createCommunity(Community community);

    Result<?> getCommunityById(Long id);

    List<Community> getAllCommunities(int offset, int limit);

    Result<?> getMembersByCommunityId(Long communityId);
    PageResult listCommunities(int page, int size);
   boolean isMember(Long communityId, Long userId);

    Long getOwnerIdByCommunityId(Long communityId);

    PageResult listAllCommunities(Integer page, Integer size);
}